package com.funny.learning.english.model;

import android.database.Cursor;

public class HistoryEntity {

	private int id;

	private String thumb;

	private String game;

	private int dung_count;

	private int tong_count;

	private int time;

	private String topic;

	private String subtopic;
	
	public HistoryEntity(Cursor cursor){
		id = cursor.getInt(0);
		thumb = cursor.getString(1);
		game = cursor.getString(2);
		dung_count = cursor.getInt(3);
		tong_count = cursor.getInt(4);
		time = cursor.getInt(5);
		topic = cursor.getString(6);
		subtopic = cursor.getString(7);
	}

	public HistoryEntity(int id, String thumb, String game, int dung_count,
			int tong_count, int time, String topic, String subtopic) {
		this.id = id;
		this.thumb = thumb;
		this.game = game;
		this.dung_count = dung_count;
		this.tong_count = tong_count;
		this.time = time;
		this.topic = topic;
		this.subtopic = subtopic;
	}

	public HistoryEntity() {
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getGame() {
		return game;
	}

	public void setGame(String game) {
		this.game = game;
	}

	public int getDung_count() {
		return dung_count;
	}

	public void setDung_count(int dung_count) {
		this.dung_count = dung_count;
	}

	public int getTong_count() {
		return tong_count;
	}

	public void setTong_count(int tong_count) {
		this.tong_count = tong_count;
	}

	public int getTime() {
		return time;
	}

	public void setTime(int time) {
		this.time = time;
	}

	public String getTopic() {
		return topic;
	}

	public void setTopic(String topic) {
		this.topic = topic;
	}

	public String getSubtopic() {
		return subtopic;
	}

	public void setSubtopic(String subtopic) {
		this.subtopic = subtopic;
	}

	@Override
	public String toString() {
		return "HistoryEntity [id=" + id + ", thumb=" + thumb + ", game="
				+ game + ", dung_count=" + dung_count + ", tong_count="
				+ tong_count + ", time=" + time + ", topic=" + topic
				+ ", subtopic=" + subtopic + "]";
	}
}
